|
Author |
Thread Statistics | Show CCP posts - 9 post(s) |

Max Kentarii
Nordic Endeavour
|
Posted - 2007.06.27 13:08:00 -
[1]
Originally by: Gripen Is there any Delphi users who can make an example with either TTCPClient or TClientSocket?
I used TIdHTTP to fetch the xml.
var data: TIdMultiPartFormDataStream; result: string; begin data := TIdMultiPartFormDataStream.Create; try data.AddFormField('characterID', charID); data.AddFormField('userID', userID); data.AddFormField('apiKey', apiKey);
result := IdHTTP1.Post('http://api.eve-online.com/char/SkillInTraining.xml.aspx', data); finally data.Free; end; Memo1.Lines.Text := result; end; -----
Wreck Salvaging Database |

Max Kentarii
Nordic Endeavour
|
Posted - 2007.06.29 10:47:00 -
[2]
Originally by: Selene D'Celeste Just finished reading the thread and playing around with the API in Python for a bit and I was wondering, is everyone still toying around, or are real projects starting to get underway? I saw one or two mentioned here, and I was just wondering what everyone is working on =)
Here's a little summary of skill training monitoring apps. Old apps are migrating to using the new EVE API and new apps are slowly coming out of the closet. -----
Wreck Salvaging Database :: EVE Dashboard |

Max Kentarii
Nordic Endeavour
|
Posted - 2007.07.01 14:09:00 -
[3]
When does the CharacterSheet.asp.xml get cached? On a regular basis or on query?
I just changed a skill in the middle of training to another one, and the skillpoints from the skill I previously trained didn't register in the CharacterSheet-xml.
This is the skill I'm currently training. Take a look at the trainingStartTime which is 13:05:13.
<?xml version='1.0' encoding='UTF-8'?> <eveapi version="1"> <currentTime>2007-07-01 13:53:43</currentTime> <result> <trainingEndTime>2007-07-01 16:24:05</trainingEndTime> <trainingStartTime>2007-07-01 13:05:13</trainingStartTime> <trainingTypeID>3354</trainingTypeID> <trainingStartSP>1814</trainingStartSP> <trainingDestinationSP>8486</trainingDestinationSP> <trainingToLevel>2</trainingToLevel> <skillInTraining>1</skillInTraining> </result> <cachedUntil>2007-07-01 14:08:43</cachedUntil> </eveapi>
Here's the CharacterSheet
<?xml version='1.0' encoding='UTF-8'?> <eveapi version="1"> <currentTime>2007-07-01 13:32:28</currentTime> <result> <characterID>665127214</characterID> <name>Max Kentarii</name> -- snip -- <rowset name="skills" key="typeID" columns="typeID,skillpoints,level,unpublished"> -- snip: currently training -- <row typeID="3354" skillpoints="1814" level="1" /> -- snip: previous skill I was training on before I switched -- <row typeID="3394" skillpoints="90510" level="4" /> -- snip -- </rowset> </result> <cachedUntil>2007-07-01 14:32:28</cachedUntil> </eveapi>
The currentTime of the CharacterSheet shows that I requested it 25 minutes after I changed the skill. The previous skill I trained has 90510 skill points while ingame and on the eve-online-website I have:
Hull Upgrades / Rank 2 / SP: 108376 of 512000
17866 points are missing. All other half-trained skills shows correctly though. Looping through the charactersheet skill rows and adding the skill points also shows the same difference in skill points when comparing to total skill points ingame/website. -----
Wreck Salvaging Database :: EVE Dashboard |

Max Kentarii
Nordic Endeavour
|
Posted - 2007.07.01 15:04:00 -
[4]
Updated the CharacterSheet again after the cache-time ran out and it now shows correct. But I still consider it an error in the API. -----
Wreck Salvaging Database :: EVE Dashboard |

Max Kentarii
Nordic Endeavour
|
Posted - 2007.07.04 21:50:00 -
[5]
Is there some inconsistency between the trainingDestinationSP used in-game and for the API? 271,529 vs 271,530 skill points for this particular skill.
|

Max Kentarii
Nordic Endeavour
|
Posted - 2007.07.06 01:04:00 -
[6]
Edited by: Max Kentarii on 06/07/2007 01:05:26
Originally by: Herio Mortis That is a rounding error in the application. Evemon seems to suffer from the same as well. The API data does not contain those values, you need to calculate them yourself, hence the differences.
I beg to differ, the API do provide this value as seen here:
<?xml version='1.0' encoding='UTF-8'?> <eveapi version="1"> <currentTime>2007-07-06 01:00:46</currentTime> <result> <currentTQTime offset="-20">2007-07-06 01:00:26</currentTQTime> <trainingEndTime>2007-07-07 05:20:05</trainingEndTime> <trainingStartTime>2007-07-03 15:52:26</trainingStartTime> <trainingTypeID>3354</trainingTypeID> <trainingStartSP>99497</trainingStartSP> <trainingDestinationSP>271530</trainingDestinationSP> <trainingToLevel>4</trainingToLevel> <skillInTraining>1</skillInTraining> </result> <cachedUntil>2007-07-06 01:15:46</cachedUntil> </eveapi>
trainingDestinationSP clearly displays 271530. |

Max Kentarii
Nordic Endeavour
|
Posted - 2007.07.06 13:26:00 -
[7]
Originally by: Cloudheart
Originally by: Chruker
I asked Garthagk about it yesterday on IRC:
What's the IRC server/channel you were on?
irc://irc.coldfront.net:6667/eve-dev -----
Wreck Salvaging Database :: EVE Dashboard |

Max Kentarii
Nordic Endeavour
|
Posted - 2007.07.07 16:14:00 -
[8]
Originally by: Max Kentarii Is there some inconsistency between the trainingDestinationSP used in-game and for the API? 271,529 vs 271,530 skill points for this particular skill.
http://eve.podzone.net/dashboard/images/trainingdestinationsp.gif Linkified -Sahwoolo
Here's a follow-up image after the skill got completed. Linkage
Looks like the error lies within the EVE client since the magic number is in fact 271,530. -----
Wreck Salvaging Database :: EVE Dashboard |

Max Kentarii
Nordic Endeavour
|
Posted - 2007.07.11 00:11:00 -
[9]
Originally by: Eight Ace Can someone just give me a bit of a pointer as to how you go about putting a newline at the end of each element in the data so I can import it into excel?
Not quite sure if this is what you're trying to achieve.. but try this line instead:
$data .= fgets($fp). "<br/>"; -----
Wreck Salvaging Database :: EVE Dashboard |
|
|
|